#ifndef HOME_H
#define HOME_H

#include <QWidget>
#include "widget.h"
#include "chatgroup.h"
namespace Ui {
class Home;
}

class Home : public QWidget
{
    Q_OBJECT

public:
    explicit Home(QString user, QTcpSocket *s, QWidget *parent = nullptr);
    ~Home();
public slots:
    void handleLabelClicked();


private slots:
    void on_pushButton_3_clicked();
    void recvMsg();

private:
    Ui::Home *ui;
    QString username;
    QTcpSocket *socket;
    QPixmap _usericon;
    QByteArray _userimg;
};

#endif // HOME_H
